package com.company;

import java.util.ArrayList;
import java.util.List;

public class Main {

    public static void main(String[] args) {
        List<String> hello = new ArrayList<>();
        hello.add("hello");
        List<String> world = new ArrayList<>();
        world.add("world");
        hello = world;
        System.out.println(hello);
    }
}
